php shorthand if isset post

43

$name = isset($_POST['submit']) ? $_POST['name'] : null;
$var = $var ?? "default";

Comments

Submit
0 Comments